imports('../../../style/search/index');

export default renders({
    <div class="g-search-container">
        <div class="m-show-fun">
            <ul class="">
                <% each $data.funList val key %>
                <li data-fun="<% val.data %>">
                    <a class="f-export" data-type="<% val.type %>" data-fun="<% val.data %>" href="javascript:;">
                        <span class="iconfont"><% val.icon %></span>
                        <span class=""><% val.name %></span>
                    </a>
                </li>
                <% /each %>
                <li class="f-last-btn">
                    <a class="" href="javascript:;">
                        <span>筛选</span>
                        <span class="iconfont down">&#xe7f0;</span>
                        <span class="iconfont up">&#xe7ec;</span>
                    </a>
                </li>
            </ul>
        </div>
        <div class="m-slide-fun">
            <form id="seldctForm">
            <ul class="m-slide-con f-clearfix m-item-len<% $data.slideList.rows %>">
                <% each $data.slideList.arr val key%>
                
                <li class="m-slide-item">
                    <div class="m-slide-c f-clearfix">
                        <div class="f-fl f-label-title"><% val.name %></div>
                        <% if val.data === 'input'%>
                            <div class="m-self-select m-self-select-<% val.data %> f-fl m-self-len<% val.name.length %>">
                                <input data-placeholder-options="{text:'请输入<% val.name %>',color:'#8b8b8b'}" name="<% val.type %>" type="text"/>
                            </div>
                        <% /if %>
                        <% if val.data === 'option'%>
                            <div class="m-self-select m-self-select-<% val.data %> f-fl m-self-len<% val.name.length %>">
                                <input name="<% val.type %>" type="hidden"  value=""/>
                                <span class="f-self-selbtn">全部</span>
                                <ul class="f-self-opt self-option">
                                    <li class="" data-id="" data-value="全部">全部</li>
                                    <% each val.option v key%>
                                    <li class="" data-id="<% v.id %>" data-value="<% v.value %>"><% v.value %></li>
                                    <% /each %>
                                </ul>
                            </div>
                        <% /if %>
                        
                        <% if val.data === 'date'%>
                            <div class="m-self-select m-self-select-<% val.data %> f-fl m-self-len<% val.name.length %>">
                                 <input id="selectDate" name="<% val.type %>" type="text" data-placeholder-options="{text:'请选择<% val.name %>',color:'#8b8b8b'}" class="date-text"  readonly="readonly" value="" />
                            </div>
                        <% /if %>
                        <% if val.data === 'ztree'%>
                            <div class="m-self-select m-self-select-<% val.data %> f-fl m-self-len<% val.name.length %>">
                                 <input type="text"  id="countryTax" readonly="readonly" class="z-tree" autocomplete="off" placeholder="全部" />
                                 <input type="hidden" name="<% val.type %>"  id="nationTax" />
                                 <ul class="f-self-ztree ztree self-option" id="zTree">
                                    
                                </ul>
                            </div>
                        <% /if %>
                    </div>
                </li>
                <% /each %>
                <li class="m-slide-item m-slide-last-item">
                   <a class="btn select-result">查询</a>
                </li>
            </ul>
            </form>
        </div>
    </div>
})